// pages/rap/rap.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    videoList:[
      {
       "id":10,
       "link":"",
       "imgSrc":"https://ae01.alicdn.com/kf/H96661de47a9f47c3990fbc5a7284277b4.jpg",
       "desc":"别再问我什么是迪斯科，摇滚新风气",
       "playCount":"99万",
       "commentCount":"1w+"
      },
      {
       "id":11,
       "link":"",
       "imgSrc":"https://ae01.alicdn.com/kf/Hb2917d1ff4864932b189b12ac5e06f12q.jpg",
       "desc":"你你你你要跳舞吗",
       "playCount":"101万",
       "commentCount":"10w+"
      },
      {
      "id":12,
      "link":"",
      "imgSrc":"https://ae01.alicdn.com/kf/Hf5d42687baa9419684e05f79347a0dcdB.jpg",
      "desc":"嗨，生活因你而火热",
      "playCount":"92万",
      "commentCount":"1w+"
      },
      {
       "id":13,
       "link":"",
       "imgSrc":"https://ae01.alicdn.com/kf/Hbca2cb8ec583427488da508e953fd21c3.jpg",
       "desc":"追梦赤子心，加油Cc",
       "playCount":"10亿",
       "commentCount":"1000w+"
       },
       {
         "id":14,
         "link":"",
         "imgSrc":"https://ae01.alicdn.com/kf/Hcb5adae827e94518977a3a79f7fef55dh.jpg",
         "desc":"为你年轻，女孩",
         "playCount":"1000亿",
         "commentCount":"10亿+"
         }
   ]
  },
  getVideoList(){
    this.setData({
      videoList:this.data.videoList
    });
  },
  back: function () {
    wx.reLaunch({
      url: '../index/index'
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
     this.getVideoList();
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})